Skip to content

feat: Report open file descriptor count#58

Merged
lfrancke merged 1 commit intomainfrom
feat/fd-usage
Apr 7, 2026
Merged

feat: Report open file descriptor count#58
lfrancke merged 1 commit intomainfrom
feat/fd-usage

Conversation

@lfrancke
Copy link
Copy Markdown
Member

@lfrancke lfrancke commented Mar 30, 2026

Summary

  • Add open_files_count field to resources, read from /proc/self/fd - I checked but this seems to be the best way of getting that number. It seems a bit stupid to me counting this but....
  • Returns None gracefully if /proc/self/fd is unavailable even though I believe it should always be available

Test plan

  • cargo test --all-features passes
  • cargo clippy with RUSTFLAGS="-D warnings" passes

Read /proc/self/fd to report the actual number of open file
descriptors alongside the existing limit. Comparing usage vs limit
helps diagnose "too many open files" errors.
@lfrancke lfrancke self-assigned this Mar 30, 2026
@lfrancke lfrancke moved this to Development: Waiting for Review in Stackable Engineering Mar 30, 2026
Copy link
Copy Markdown
Member

@sbernauer sbernauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it looks silly, but I couldn't find a better alternative

@lfrancke lfrancke added this pull request to the merge queue Apr 7, 2026
Merged via the queue into main with commit 6f71d96 Apr 7, 2026
10 checks passed
@lfrancke lfrancke deleted the feat/fd-usage branch April 7, 2026 16:42
@sbernauer sbernauer moved this from Development: Waiting for Review to Development: Done in Stackable Engineering Apr 8, 2026
@lfrancke lfrancke moved this from Development: Done to Done in Stackable Engineering Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants